<?php

class Application_Model_DbTable_PayCodeOrder extends Application_Model_DbTable_DomainObject{
    
    protected $_name = 'uuch_paycode_order';
    
    public function getMapper() {
        return array('id','uid','userName','money','cardid','cardno','verifyCode','typeid','cardType','cardType','createTime','payTime','payType','url','state','remark','replyuid','replyTime','replynote');
    }
    
        
     public  function getByUid($uid){
            $db = $this->getAdapter();
            $filter = $db->quoteInto(' uid = ?', $uid);            
            $rows = $this->fetchAll($filter,'id',null,0);
            
            $result = array();
            foreach ($rows as $row){
                array_push($result,$this->convertRowToObject($row));                    
            }           
            
            return $result;
        }
}